package com.hpeu_01.day0113;

public class StringDemo05 {
    public static void main(String[] args) {
        //String类型转基本数据类型
        String str = "123";
        Integer i = Integer.parseInt(str);
        System.out.println(i);
        Integer i1 = Integer.parseInt(str);
        System.out.println(i1);
        //基本数据类型转String类型
        int number = 456;
        String str1 = String.valueOf(number);
        System.out.println(str1);
        String str2 = Integer.toString(number);
        System.out.println(str2);
    }
}
